package cn.xyinping.feign.clients;
import cn.xyinping.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 27266
 * @desrciption 远程调用客户端服务
 * @date 2021/11/18
 */
@FeignClient(value = "SERVER-USER", fallbackFactory = UserFeignClientFallback.class)
public interface UserFeignClient {

    @GetMapping("/getById/{id}")
    User getById(@PathVariable("id") Long id);
}
